package com.rr.learningdemo.rabbitmq.thread;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author zhuangcanrun
 * @Date 2021/06/21/17:53
 * @description
 **/

@Component
public class RedisListenerThreadStart implements ApplicationRunner {

    @Autowired
    private RedisListenerThread thread;
    @Autowired
    private RedisListenerThreadWithLevel threadWithLevel;
    @Autowired
    private RedisListenerThreadForList redisListenerThreadForList;

    @Override
    public void run(ApplicationArguments args) throws Exception {
//        thread.start();
//        threadWithLevel.start();
        redisListenerThreadForList.start();
    }
}
